<?php

namespace catchAdmin\stock\service;

use catchAdmin\stock\model\WarehouseConfig;
use think\Exception;
use think\facade\Db;
use think\facade\Log;

class WarehouseConfigService{


    public function __construct()
    {

    }


    public function getUniqueConfidId(){
        $config_id = date('YmdHis') . mt_rand(10000,99999);

        if((new WarehouseConfig())->where('config_id')->find()){
            $config_id = $this->getUniqueConfidId();
        }

        return $config_id;
    }
}